<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>

<body>
    a.html

    <a href="#">1</a>
    <a href="#">2</a>
    <a href="#">3</a>

    <script>
        document.body.onclick = function(e){
            if(e.target.nodeName === 'A'){
                
            }
        }
    </script>
</body>

</html>